const { query } = require('../utils/db')
module.exports = {
  // 用户登录(Y)
  async login(tel, code) {
    let sql = ``
    let rows = await query(sql, [tel, code])
    let res = rows[0]
    if (!res || res.length == 0) {
      return { suc: false }
    }
    return { suc: true, data: res[0] }
  }
}
